﻿using System.Web.Mvc;

namespace Fuse8.ContentManagementFramework.Web.ApplicationRuntime
{
    public class ContentModuleArea : AreaRegistration
    {
        public const string ContentAreaName = "CMS::ContentModuleArea";

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.NonCmsMapRoute("ContentModuleDefault", "CmsContentModule/{action}",
                             new { controller = "CmsContentModule", action = "RenderContentModule" }, new string[] { "Fuse8.ContentManagementFramework.Web.ApplicationRuntime" });
        }

        public override string AreaName
        {
            get { return ContentAreaName; }
        }
    }
}